home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / FLI106C.ZIP;1 / BLCOPY.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1992-03-12  |  687 b   |  32 lines

  1. //
  2. // The Fusion Library Interface for DOS
  3. // Version 1.06c
  4. // Copyright (C) 1990, 1991, 1992
  5. // Software Dimensions
  6. //
  7. // BlazeClass
  8. //
  9.  
  10. #include "fli.h"
  11.  
  12. #ifdef __BCPLUSPLUS__
  13. #pragma hdrstop
  14. #endif
  15.  
  16. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  17. //
  18. // CopyArea()
  19. //
  20. // Copy an area of the display to another location
  21. //
  22. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  23.  
  24. void BlazeClass::CopyArea(int X,int Y,int Width,int Height,int ToX,int ToY)
  25. {
  26.   void *Screen = new char [ComputeNeededBytes(Width,Height)];
  27.   GetArea(X,Y,Width,Height,Screen);
  28.   PutArea(ToX,ToY,Screen);
  29.   delete Screen;
  30. }
  31.  
  32.